import request from '../request'

const Api = {
  page: '/api/adminschool/school/page',
  remove: '/api/adminschool/school/remove',
  save: '/api/adminschool/school/save',
  selectById: '/api/adminschool/school/selectById',
  update: '/api/adminschool/school/update'
}

/** 删除学校信息 */
export const remove = params => {
  return request.request({
    url: Api.remove,
    params,
    method: 'DELETE'
  })
}

/** 查询学校信息详情 */
export const page = params => {
  return request.request({
    url: Api.page,
    params,
    method: 'GET'
  })
}

/** 新增课程基本信息 */
export const save = data => {
  return request.request({
    url: Api.save,
    data,
    method: 'POST'
  })
}

/** 查询学校信息详情 */
export const selectById = params => {
  return request.request({
    url: Api.selectById,
    params,
    method: 'GET'
  })
}

export const update = data => {
  return request.request({
    url: Api.update,
    data,
    method: 'PUT'
  })
}
